#include<REGX52.H>
#include "delayms.h"
#include "lcd1602.h"
#include "keyboard.h"

unsigned char keyCode;
//段选位选只能显示一个
//循环，同时显示
void main(){
	LCD_Init();
	LCD_ShowString(1,1,"keyCode:");
	
	
		while(1){	
		keyCode = GetKeyCode();
			//keyCode不为0，说明按键被按下
		if(keyCode){
		LCD_ShowNum(1,9,keyCode,3);
	//	Delay_ms(500);
			}
	}   

}
